if showAmazonLogo
  img#amazon-level-logo(src="/images/pages/play/amazon_horz_lockup.png")

.hinge.hinge-0
.hinge.hinge-1
.hinge.hinge-2
.hinge.hinge-3

.spell-tool-buttons
  .btn.btn-small.btn-illustrated.btn-warning.reload-code(data-i18n="[title]play_level.tome_reload_method")
    .glyphicon.glyphicon-repeat

  if me.level() >= 15
   .btn.btn-small.btn-illustrated.fullscreen-code(title=maximizeShortcutVerbose)
     .glyphicon.glyphicon-fullscreen
     .glyphicon.glyphicon-resize-small

  if codeLanguage === 'javascript' && me.level() >= 15
    .btn.btn-small.btn-illustrated.beautify-code(title=beautifyShortcutVerbose)
      .glyphicon.glyphicon-magnet

  if !view.blocksHidden
    .btn.btn-small.btn-illustrated.toggle-blocks(data-i18n="[title]play_level.blocks")
      span(data-i18n="play_level.blocks")

  if false && view.options.level.isType('ladder')
    - var otherTeam = view.otherTeam()
    button#switch-team(class="btn btn-small btn-illustrated " + (otherTeam == 'ogres' ? 'btn-primary' : 'btn-danger'))
      span(data-i18n="play_level.play_as_" + otherTeam)

  if view.showLevelHelp
    span.spell-chatbot
      img.spell-chatbot-hint(src="/images/ozaria/teachers/dashboard/svg_icons/IconHint.svg" alt="Hint")

  if me.canAutoFillCode()
    if view.teaching
      button.btn.btn-small.btn-illustrated.btn-success#toggle-solution
        span(data-i18n="play_level.toggle_solution")
    else
      button.btn.btn-small.btn-illustrated.btn-success#fill-solution
        span(data-i18n="play_level.fill_in_solution")

  #ask-teacher-for-help
    if view.courseID && me.isStudent() && view.teacherOnline()
      button.btn.btn-small.btn-illustrated.btn-success(class=view.teacherOnline() ? '' : 'disabled', title=askingTeacher)
        span(data-i18n="common.help")

  if view.hintsState && view.hintsState.get('total') > 0
    .btn.btn-small.btn-illustrated.hints-button
      span(data-i18n="play_level.hints")

  if view.showVideosButton()
    .btn.btn-small.btn-illustrated.btn-success.videos-button
      span(data-i18n="play_level.videos")

  if view.options.level.isType('web-dev')
    .btn.btn-small.btn-illustrated.image-gallery-button
      span(data-i18n='web_dev.image_gallery_title')

  if view.options.level.get('shareable')
    - i18nName = view.options.level.isType('game-dev') ? 'sharing.game' : 'sharing.webpage'
    if view.options.session.isFake()
      button.btn.btn-small.btn-illustrated(
        data-i18n=i18nName
        data-toggle="popover"
        data-placement="bottom"
        data-content=translate('sharing.your_students_preview')
        data-trigger="hover"
      )
    else
      - var url = '/play/' + view.options.level.get('type') + '-level/' + view.options.level.get('slug') + '/' + view.options.session.id;
      if view.options.courseID
        - url += '?course=' + view.options.courseID;
        if view.options.courseInstanceID
          - url += '&course-instance=' + view.options.courseInstanceID;
      a.btn.btn-small.btn-illustrated(href=url, data-i18n=i18nName)

  .clearfix
